package edu.ycxy.poetry.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import edu.ycxy.poetry.entity.DjInfo;
import edu.ycxy.poetry.vo.UpdateDjVo;

import java.util.List;

/**
 * @Author @xin
 * @createDate 2022/3/14
 * @Description
 */
public interface IDjInfoService extends IService<DjInfo> {

    //根据id查询详细的内容
    List<DjInfo> selectList(Integer aid);

    //根据aid查询出来的主标题,获取每个数据的次标题
    List<DjInfo> selectListById(Integer id);

    //根据古籍的章节目录的id查询该目录里面的详细内容
    DjInfo findContentById(Integer id);

    //模糊查询
    PageInfo<DjInfo> findFuzzy(String title,Integer pageNum,Integer pageSize);

    //删除
    Integer deleteDjInfoById(Integer id);

    Integer updateDjInfo(UpdateDjVo updateDjVo);
}
